{extend name="common/base" /}
{block name="title"}文章分类列表{/block}
{block name="main"}
<script src="/ad/js/article/at_list.js"></script>
     <!-- Navigation -->
		<div id="page-wrapper">
        <div class="col-md-12 graphs">
	   <div class="xs">
  	 <h3>文章分类列表</h3>
  	<div class="bs-example4" data-example-id="contextual-table">
	<h5 ><a href="{:url('Article/at_add')}"><span class="label label-success">添加分类</span></a></h5>
    <div class="table-responsive">
    <table class="table">
      <thead>
        <tr>
          <th>#</th>
          <th>分类名称</th>
          <th>分类类别</th>
		  <th>添加时间</th>
          <th>操作</th>
        </tr>
      </thead>
      <tbody>
		{volist name="res" id="m" key="k"}
        <tr>
          <th scope="row">{$k}</th>
          <td>{$m.article_type_name}</td>
		  <td>{$m.article_type_level?'其他文章':'底部文章'}</td>
          <td>{$m.article_type_time|date='Y-m-d',###}</td>
		  <td>
        <h5><a href="{:url('Article/at_add',array('article_type_id'=>$m['article_type_id']))}"><span class="label label-primary">编辑</span></a>&nbsp;
        <a href="javascript:void(0)" data-url="{:url('Article/a_delete')}" data-id="{$m['article_type_id']}" class="del_article"><span class="label label-danger">删除</span></a></h5>
      </td>
        </tr>
		{/volist}

      </tbody>
    </table>
    </div>
	  <div style="text-align:center;">{$res -> render()}</div>
   </div>
  </div>
  </div>
  {/block}


